
function showHomework(couId) {
    var btn = document.getElementById(couId);
    var url = "/teacher/homework/" + couId;
    $.ajax({
        url: url,
        type: 'get',
        success: function (data) {
            $("#homeworkList").html(data);
        }
    })
}

function showStudentHomework(couId) {
    var btn = document.getElementById(couId);
    var url = "/student/homework/" + couId;
    $.ajax({
        url: url,
        type: 'get',
        success: function (data) {
            $("#studentHomeworkList").html(data);
        }
    })
}